<?php

// $Id$

require_once(TANGRA_MAIN_DIR.'grids/sp_grid_wlc.class.php');

class Sitemap_Grid extends SP_Grid_WLC {
	function __construct() {
		parent::__construct('sitemap', 'admin/modules/tangra_cms/sitemap/sitemap.php', 3, 20);

		$this->add_link_col('edit', 'admin/modules/tangra_cms/sitemap/sitemap_entry_edit.php', 'edit');
		$this->add_link_col('delete', 'admin/modules/tangra_cms/sitemap/sitemap_entry_del.php', 'del');
//		$this->generate_html();
	}

	public function set_rows(&$rows) {
		$this->set_rows_and_link_cols_rows_from_raw_rows($rows, 0, true);
	}


	public function generate_html() {
		print_r_pre(htmlentities($this->get_static_html('modules/grid_html_tpl_static_ajax_metallic_en/','en')));
	}
}